﻿using Server.Manage.Components;
using System;
using System.Windows.Forms;

namespace Server.Manage
{
    public partial class Home : Form
    {
        public Home()
        {
            InitializeComponent();
        }

        private void MenuClick(object sender, EventArgs e)
        {
            if (sender is ToolStripMenuItem menuItem)
            {
                switch (menuItem.Name)
                {
                    #region 用户

                    case nameof(刷新ToolStripMenuItem):
                        break;
                    case nameof(删除ToolStripMenuItem):
                        break;
                    case nameof(订阅ToolStripMenuItem):
                        break;

                    #endregion

                    #region 产品

                    case nameof(产品管理ToolStripMenuItem):
                        var productDlg = new ProductHome();
                        productDlg.ShowDialog();
                        break;
                    case nameof(文件管理ToolStripMenuItem):
                        break;

                    #endregion

                    #region 发布

                    case nameof(发布管理ToolStripMenuItem):
                        break;

                    #endregion

                    #region 帮助

                    case nameof(关于ToolStripMenuItem):
                        break;

                        #endregion

                }
            }
        }
    }
}
